//  最终所有的部分都汇聚到此，这就是store对象
// vuex 理念中 initial state,mutations，相应dispatch－》mutations－》从而完成对state的更新
import Vue from "vue";
import Vuex from "vuex";
import * as actions from "./actions";
import * as mutations from "./mutations";
import * as getters from "./getters";
import state from "./rootState";

Vue.use(Vuex);

const store = new Vuex.Store({
    state,
    getters,
    actions,
    mutations
});

export default store;
